import axios from '../axios/index.js'

//获取用户资料
export const userInfos = () => {
    return axios.get('/mp/v1_0/user/profile')
}

//上传用户头像
export const uploadIcon = (fd) => {
    return axios.patch("/mp/v1_0/user/photo", fd)
}

//修改用户信息
export const changeUserInfo = ({name,intro,email}) => {
    return axios.patch('/mp/v1_0/user/profile',{
        name,
        intro,
        email
    })
}